Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hixme-ui/modal

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hixme-ui/modal

hixme-ui Modal component

  • 1.20.7
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Modal

npm i --save @hixme-ui/modal

View it live

Usage

import Modal from '@hixme-ui/modal'

<Modal
  dialog 
  medium
  title='All your base are belong to us' 
  confirmLabel='Get down!' 
  cancelLabel='Eh, maybe not...'
>
  {/* Modal content here */}
</Modal>

Props

PropertyTypeValueRequiredDescription
backgroundColorstringN/AYesEasy way to change the modal color
hideCloseButtonbooleanfalseYesHide the default close button
styleobjectN/ANoOverride modal styles
titlestringN/ANoModal title header
zIndexnumber1001NoModal z-index value
smallbooleanfalseNoModal with 568px max-width
mediumbooleanfalseNoModal with 800px max-width
largebooleanfalseNoModal with 1024px max-width
middlebooleanfalseNoVertically align content in the center of the modal
bottombooleanfalseNoVertically align content on the bottom of the modal
contentCenterbooleanfalseNoHorizontally align content center
contentEndbooleanfalseNoHorizontally align content right
contentPaddingstringnullNoPadding for the modal content
cancelProcessingbooleanfalseNoShow processing state on cancel button
cancelSubmittingTextstringN/ANoText shown on the cancel button when cancelProcessing is true
cancelHandlerfunctiondefaultClose()NoWhen dialog = true, function called on cancel
cancelLabelstring'Cancel'NoWhen dialog = true, label on the cancel button
confirmProcessingbooleanfalseNoShow processing state on confirm button
confirmSubmittingTextstringN/ANoText shown on the confirm button when confirmProcessing is true
confirmHandlerfunctionN/ANoWhen dialog = true, function called on confirm
confirmLabelstring'Ok'NoWhen dialog = true, label on the confirm button
dialogbooleanfalseNoShow dialog modal
errorDialogbooleanfalseNoShow error dialog modal

Styling

The default style is a full screen modal. You can specify small, medium, or large to render a more traditional modal style. Any of the preset modal styles can be overwritten by providing the <MrModal /> component with a style object.

style: {
  content: {
    ...contentStyles
  },
  overlay: {
    ...overlayStyles
  },
}

Keywords

FAQs

Package last updated on 15 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc